package com.dreamwhale.machinery.service;

import com.dreamwhale.machinery.entity.YxStoreProduct;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author Author
 * @since 2020-05-30
 */
public interface YxStoreProductService extends IService<YxStoreProduct> {

    /**
     * 配件分类
     *
     * @param type
     * @param types
     * @return
     */
    List<YxStoreProduct> selectYxStoreProductSaleAsc(Integer type, Integer types, Integer brandId, Integer cateId, Integer priceId, String storeName);

    /**
     * 根据id查询商品信息
     *
     * @param storeProductId
     * @return
     */
    YxStoreProduct selectYxStoreProductById(String storeProductId);

    /**
     * 根据商户id查询条数
     *
     * @param merId
     * @return
     */
    List<YxStoreProduct> selectYxStoreProductCount(Integer merId);

    /**
     * 根据商户id查询商品
     *
     * @param merId
     * @param type
     * @param types
     * @param cateId
     * @param brandId
     * @return
     */
    List<YxStoreProduct> selectYxStoreProductByMerId(Integer merId, Integer type, Integer types, Integer cateId, Integer brandId);

    /**
     * 查询新机展
     *
     * @return
     */
    List<YxStoreProduct> selectYxStoreProductNews(Integer brandId, Integer cateId, Integer priceId, String storeName);

    /**
     * 查询热门推荐
     *
     * @return
     */
    List<YxStoreProduct> selectYxStoreProductHot();


    /**
     * 查询特价优惠
     *
     * @return
     */
    List<YxStoreProduct> selectYxStoreProductBenefit();


}
